<?php
include_once 'conn.php';
$sql="DELETE FROM users WHERE id='" .$_GET["id"]."'";
if (mysqli_query($link,$sql)) {
    header("location:index.php");
    exit;
}else {
    echo "删除错误:".mysqli_error($link);
}
mysqli_close($link);
?>